'use strict';
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

// exports.__esModule = true;

var request_1 = __importDefault(require('../utils/request.js'));
var request = new request_1['default']();
/***** 公共部分******/



// 订单详情
exports.myBillDetails = function (params) {
    return request.getRequest({
        url: 'myBillDetails',
        data: params
    });
};


// 根据流水号获取评价订单详情
exports.getDetailsByBusId = function (params) {
    return request.postRequest({
        url: `getDetailsByBusId?busId=${params}`,
    });
};


// 获取评价标签
exports.getCommentTaglibList = function (params) {
    return request.postRequest({
        url: 'getCommentTaglibList',
        data: params
    });
};


// 添加订单评价
exports.addBillComment = function (params) {
    return request.postRequest({
        url: 'billComment',
        data: params
    });
};

// 关闭订单
exports.stopAndCloseCharge = (params) => {
	return request.postRequest({
		url: 'stopAndCloseCharge',
		header: 'form',
		data: params
	})
}
